import request from '@/utils/request'

export async function fakeAccountLogin(params) {
  return request('/auth/loginpc', {
    method: 'POST',
    data: params,
  })
}
export async function getFakeCaptcha(mobile) {
  return request(`/api/login/captcha?mobile=${mobile}`)
}

/**
 * 获取登录二维码数据
 */
export async function getWxQrcodeData() {
  return request('/wx/findAccreditData')
}

/**
 * 校验验证码
 * @param {*} params = {
 "account":"",
 "code":""
}
 */
export async function smsValidator(params) {
  return request('/auth/smsValidator', {
    method: 'POST',
    data: params,
  })
}
